|
Quaqua 4.4.7 2008-07-16 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VisuallyLayoutable
This interface is implemented by user interface delegates, which support layouts based on visual criteria.
Warning: This is an experimental API. Expect substantial changes on each release.
| Field Summary | |
|---|---|
static int |
CLIP_BOUNDS
The clip bounds of a component. |
static int |
COMPONENT_BOUNDS
The visually perceived bounds of a component, e.g. |
static int |
TEXT_BOUNDS
The visually perceived bounds of the text on the component. |
| Method Summary | |
|---|---|
int |
getBaseline(javax.swing.JComponent c,
int width,
int height)
Returns the baseline for the specified component, or -1 if the baseline can not be determined. |
java.awt.Rectangle |
getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
Returns the visual bounds for the specified component, or null if the visual bounds can not be determined. |
| Field Detail |
|---|
static final int CLIP_BOUNDS
static final int COMPONENT_BOUNDS
static final int TEXT_BOUNDS
| Method Detail |
|---|
int getBaseline(javax.swing.JComponent c,
int width,
int height)
c - JComponent to calculate baseline forwidth - Width of the component to determine baseline for.height - Height of the component to determine baseline for.
java.awt.Rectangle getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
c - JComponent to calculate visual margin fortype - The type of the visual margin.width - Width of the componentheight - Height of the component
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||